package edu.buaa.act.travel.m.tpdl;

import java.io.Serializable;

/**
 * Activity 之间的转移结构
 * @author nevor
 *
 */
public class Flow implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String id;
	Activity source;
	Activity target;
	String sourceRef;
	String targetRef;
	
	public Flow(){
		
	}
	
	public Flow(String id) {
		super();
		this.id = id;
	}
	public Flow(String id, Activity source) {
		super();
		this.id = id;
		this.source = source;
	}
	public Flow(String id, Activity source, Activity target) {
		super();
		this.id = id;
		this.source = source;
		this.target = target;
	}

	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Activity getSource() {
		return source;
	}
	public void setSource(Activity source) {
		this.source = source;
	}
	public Activity getTarget() {
		return target;
	}
	public void setTarget(Activity target) {
		this.target = target;
	}
	public String getSourceRef() {
		return sourceRef;
	}
	public void setSourceRef(String sourceRef) {
		this.sourceRef = sourceRef;
	}
	public String getTargetRef() {
		return targetRef;
	}
	public void setTargetRef(String targetRef) {
		this.targetRef = targetRef;
	}
}
